'''
Created on 4/03/2013

@author: Jorge
'''
from DatasetTransformation import DatasetTransformation
from sklearn.feature_extraction.text import TfidfTransformer

class TF_IDF(DatasetTransformation):
    '''
    classdocs
    '''

    def transformation(self, X):
        transformer = TfidfTransformer()
        tfidf = transformer.fit_transform(X)
        new_X = tfidf.toarray()
        return new_X